﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucJobListNonWarranty.ascx.cs"
    Inherits="UserControl_ucJobListNonWarranty" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<div class="Post">
    <%--<div class="Post-tl">
    </div>
    <div class="Post-tr">
    </div>
    <div class="Post-bl">
    </div>
    <div class="Post-br">
    </div>
    <div class="Post-tc">
    </div>
    <div class="Post-bc">
    </div>
    <div class="Post-cl">
    </div>
    <div class="Post-cr">
    </div>
    <div class="Post-cc">
    </div>--%>
    <div class="Post-body">
        <div class="Post-inner">
            <div class="PostContent">
                <h2 class="PostHeaderIcon-wrapper" style="text-align: center">
                    MPR JOBS LIST-NON-WARRANTY
                </h2>
                <%--<div id="node-7" class="node Post">--%>
                <%-- <div class="Post-tl">
                    </div>
                    <div class="Post-tr">
                    </div>
                    <div class="Post-bl">
                    </div>
                    <div class="Post-br">
                    </div>
                    <div class="Post-tc">
                    </div>
                    <div class="Post-bc">
                    </div>
                    <div class="Post-cl">
                    </div>
                    <div class="Post-cr">
                    </div>
                    <div class="Post-cc">
                    </div>--%>
                <%--<div class="Post-body">--%>
                <table>
                    <tr>
                        <td colspan="2">
                            <div>
                                <strong class="active-link">
                                    <asp:Label ID="Label3" runat="server" Text="Active Jobs" Font-Size="Medium" ForeColor="#6C3C04"></asp:Label></strong>
                                No. of Jobs
                                <asp:TextBox ID="txtdem" runat="server" Width="50px" Style="text-align: right"></asp:TextBox>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <table id="Table1" width="100%">
                                <tr>
                                    <td>
                                        <asp:GridView ID="grdJobList" runat="server" AutoGenerateColumns="False" CssClass="grd"
                                            OnRowDataBound="grdJobList_RowDataBound">
                                            <Columns>
                                                <asp:HyperLinkField DataNavigateUrlFields="JobId" DataNavigateUrlFormatString="~/Admin/Booking.aspx?id={0}"
                                                    DataTextField="JobId" HeaderText="Number" ItemStyle-HorizontalAlign="Center"
                                                    ItemStyle-Width="30px" />
                                                <asp:HyperLinkField DataNavigateUrlFields="CustomerIndex" DataNavigateUrlFormatString="~/Customer.aspx?id={0}"
                                                    DataTextField="CustomerFullName" HeaderText="CustomerName" ItemStyle-HorizontalAlign="Center"
                                                    ItemStyle-Width="132px" />
                                                <asp:TemplateField HeaderText="DateBooked">
                                                    <ItemTemplate>
                                                        <%# (Convert.ToDateTime(Eval("DateBook")).ToString("dd/MM/yyyy"))%>
                                                    </ItemTemplate>
                                                    <ItemStyle Width="70px" VerticalAlign="Middle" HorizontalAlign="Center"></ItemStyle>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Age">
                                                    <ItemTemplate>
                                                        <%# Eval("Age")%>
                                                    </ItemTemplate>
                                                    <ItemStyle Width="40px" VerticalAlign="Middle" HorizontalAlign="Center"></ItemStyle>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="CurrentStatus">
                                                    <ItemTemplate>
                                                        <%--<asp:Label ID="lbCurrentStatus" runat="server"></asp:Label>--%>
                                                        <%# Eval("QuoteStatus")%>
                                                    </ItemTemplate>
                                                    <ItemStyle Width="202px" VerticalAlign="Middle" HorizontalAlign="Center"></ItemStyle>
                                                </asp:TemplateField>
                                                <%--<asp:TemplateField HeaderText="PhoneBrand">
                                    <ItemTemplate>
                                        <%# Eval("BrandName")%>
                                    </ItemTemplate>
                                    <ItemStyle Width="200px" VerticalAlign="Middle" HorizontalAlign="Center"></ItemStyle>
                                </asp:TemplateField>--%>
                                                <asp:TemplateField HeaderText="PhoneModel">
                                                    <ItemTemplate>
                                                        <%# Eval("Model")%>
                                                    </ItemTemplate>
                                                    <ItemStyle Width="100px" VerticalAlign="Middle" HorizontalAlign="Center"></ItemStyle>
                                                </asp:TemplateField>
                                                <%--<asp:TemplateField HeaderText="FaultDescription">
                                    <ItemTemplate>
                                        <%# Eval("FaultDescription")%>
                                    </ItemTemplate>
                                    <ItemStyle Width="200px" VerticalAlign="Middle" HorizontalAlign="Center"></ItemStyle>
                                </asp:TemplateField>--%>
                                                <asp:HyperLinkField DataNavigateUrlFields="JobId" DataNavigateUrlFormatString="~/Admin/Booking.aspx?id={0}"
                                                    HeaderText="Detail" ItemStyle-HorizontalAlign="Center" Text="Detail" ItemStyle-Width="70px" />
                                            </Columns>
                                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                            <HeaderStyle CssClass="grdHeader" />
                                            <EditRowStyle BackColor="#2461BF" />
                                            <AlternatingRowStyle CssClass="grdAlternateRow" />
                                            <PagerSettings PageButtonCount="6" />
                                            <RowStyle CssClass="grdRow" />
                                        </asp:GridView>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div>
                                <strong class="active-link">
                                    <asp:Label ID="Label1" runat="server" Text="Call Customers for Approval" Font-Size="Medium"
                                        ForeColor="#6C3C04"></asp:Label></strong> No, of Jobs
                                <asp:TextBox ID="txtdemapproval" runat="server" Width="50px" Style="text-align: right"></asp:TextBox>
                            </div>
                        </td>
                        <td>
                            <div>
                                <strong class="active-link">
                                    <asp:Label ID="Label2" runat="server" Text="Call Customers to pick-up" Font-Size="Medium"
                                        ForeColor="#6C3C04"></asp:Label></strong> No, of Jobs
                                <asp:TextBox ID="txtdempickup" runat="server" Width="50px" Style="text-align: right"></asp:TextBox>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:GridView ID="grdCustomerApproval" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                CssClass="grd" OnRowDataBound="grdCustomerApproval_RowDataBound">
                                <AlternatingRowStyle CssClass="grdAlternateRow" />
                                <Columns>
                                    <%-- <asp:TemplateField HeaderText="JobID">
                                        <ItemTemplate>
                                            <%# Eval("JobID")%>
                                        </ItemTemplate>
                                        <ItemStyle Height="30px" HorizontalAlign="Center" VerticalAlign="Middle" Width="50px" />
                                    </asp:TemplateField>--%>
                                    <asp:HyperLinkField DataNavigateUrlFields="JobId" DataNavigateUrlFormatString="~/Booking.aspx?id={0}"
                                        DataTextField="JobId" HeaderText="Number" ItemStyle-HorizontalAlign="Center"
                                        ItemStyle-Width="30px" />
                                    <asp:HyperLinkField DataNavigateUrlFields="CustomerIndex" DataNavigateUrlFormatString="~/Customer.aspx?id={0}"
                                        DataTextField="CustomerFullName" HeaderText="CustomerName" ItemStyle-HorizontalAlign="Center"
                                        ItemStyle-Width="132px" />
                                    <asp:TemplateField HeaderText="DateBooked">
                                        <ItemTemplate>
                                            <%# (Convert.ToDateTime(Eval("DateBook")).ToString("dd/MM/yyyy"))%>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="70px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="CurrentStatus">
                                        <ItemTemplate>
                                            <%--<asp:Label ID="lbCurrentStatus1" runat="server"></asp:Label>--%>
                                            <%# Eval("QuoteStatus")%>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Age">
                                        <ItemTemplate>
                                            <%# Eval("Age")%>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="PhoneModel">
                                        <ItemTemplate>
                                            <%# Eval("Model")%>
                                        </ItemTemplate>
                                        <ItemStyle Width="100px" VerticalAlign="Middle" HorizontalAlign="Center"></ItemStyle>
                                    </asp:TemplateField>
                                    <asp:HyperLinkField DataNavigateUrlFields="JobId" DataNavigateUrlFormatString="~/Booking.aspx?id={0}"
                                        HeaderText="Detail" ItemStyle-HorizontalAlign="Center" Text="Detail" ItemStyle-Width="70px" />
                                </Columns>
                                <EditRowStyle BackColor="#2461BF" />
                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle CssClass="grdHeader" />
                                <PagerSettings PageButtonCount="6" />
                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                <RowStyle CssClass="grdRow" />
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            </asp:GridView>
                        </td>
                        <td>
                            <asp:GridView ID="grdpickup" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                CssClass="grd"  OnRowDataBound="grdpickup_RowDataBound" >
                                <AlternatingRowStyle CssClass="grdAlternateRow" />
                                <Columns>
                                    <asp:TemplateField HeaderText="JobID">
                                        <ItemTemplate>
                                            <asp:Label ID="lbIDJob" runat="server" Text='<%# Eval("JobID") %>'></asp:Label>
                                            <asp:HiddenField ID="hid" runat="server" />
                                        </ItemTemplate>
                                        <ItemStyle Height="30px" HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
                                    </asp:TemplateField>
                                    <%-- <asp:HyperLinkField DataNavigateUrlFields="JobId" DataNavigateUrlFormatString="~/Booking.aspx?id={0}"
                                        DataTextField="JobId" HeaderText="Number" ItemStyle-HorizontalAlign="Center"
                                        ItemStyle-Width="30px" />--%>
                                    <%--<asp:HiddenField ID="hid" runat="server" />--%>
                                    <asp:HyperLinkField DataNavigateUrlFields="CustomerIndex" DataNavigateUrlFormatString="~/Customer.aspx?id={0}"
                                        DataTextField="CustomerFullName" HeaderText="CustomerName" ItemStyle-HorizontalAlign="Center"
                                        ItemStyle-Width="132px" />
                                    <asp:TemplateField HeaderText="DateBooked">
                                        <ItemTemplate>
                                            <%# (Convert.ToDateTime(Eval("DateBook")).ToString("dd/MM/yyyy"))%>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="90px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="CurrentStatus">
                                        <ItemTemplate>
                                            <%--<asp:Label ID="lbCurrentStatus2" runat="server"></asp:Label>--%>
                                            <%# Eval("QuoteStatus") %>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
                                    </asp:TemplateField>
                                    <%--<asp:TemplateField HeaderText="Changed At">
                                        <ItemTemplate>
                                            <%# (Convert.ToDateTime(Eval("DateQuoted")).ToString("dd/MM/yyyy")) %>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="150px" />
                                    </asp:TemplateField>--%>
                                    <%-- <asp:TemplateField HeaderText="OutCome">
                                        <ItemTemplate>
                                            <%# Eval("OutCome")%>
                                        </ItemTemplate>
                                        <ItemStyle Font-Bold="True" HorizontalAlign="Left" Width="100px" Wrap="True" />
                                    </asp:TemplateField>--%>
                                    <asp:TemplateField HeaderText="Status">
                                        <ItemTemplate>
                                            <asp:DropDownList ID="drStatus" runat="server" Width="110px" OnSelectedIndexChanged="drStatus_SelectedIndexChanged"
                                                AutoPostBack="true">
                                                <asp:ListItem Value="0" Text="Waiting..."></asp:ListItem>
                                                <asp:ListItem Value="2" Text="Complete"></asp:ListItem>
                                            </asp:DropDownList>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" Width="120px" Wrap="True" />
                                    </asp:TemplateField>
                                </Columns>
                                <EditRowStyle BackColor="#2461BF" />
                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle CssClass="grdHeader" />
                                <PagerSettings PageButtonCount="6" />
                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                <RowStyle CssClass="grdRow" />
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</div>
